package com.PMSys.Demain;

public class Staff {
	private String s_id;     //员工号
	private String s_name;     //员工名
	private String s_sex;     //员工姓别
	private String s_sexName;     //员工姓别名字
	private String s_birthday;     //出生日期
	private String s_idCard;     //身份证
	private String d_id;     //部门号
	private String p_id;     //岗位号
	private String s_entrydate;     //入职日期
	private String s_workdate;     //参工日期
	private String s_workform;     //用工形式
	private String s_workformName;     //用工形式
	private String s_source;     //人员来源
	private String s_sourceName;     //人员来源
	private String s_political;     //政治面貌
	private String s_politicalName;     //政治面貌
	private String s_phone;     //电话
	
	private String s_oldOccupation_Startdate;      //前职业起始时间
	private String s_oldOccupation_Enddate;      //前职业截止时间
	private String s_oldCompany_name;      //前所在单位名称
	private String s_oldWork_content;      //前从事工作内容
	private String s_foreign_languages;      //外国语种
	private String s_kinship;      //亲戚关系
	private String s_kinshipName;      //亲戚关系
	private String s_relation_name;      //关系人姓名
	private String s_relation_telephone;      //关系人电话
	
	private Department department; //部门信息
	private Post post;      //岗位信息
	public String getS_id() {
		return s_id;
	}
	public void setS_id(String sId) {
		s_id = sId;
	}
	public String getS_name() {
		return s_name;
	}
	public void setS_name(String sName) {
		s_name = sName;
	}
	public String getS_sex() {
		return s_sex;
	}
	public void setS_sex(String sSex) {
		s_sex = sSex;
	}
	public String getS_sexName() {
		return s_sexName;
	}
	public void setS_sexName() {
		if(s_sex == null){
			s_sexName = null;
		}
		else{
			if(s_sex.equals("1")){
				s_sexName = "男";
			}else if(s_sex.equals("2")){
				s_sexName = "女";
			}
			else{
				
			}
		}
		
	}
	public String getS_birthday() {
		return s_birthday;
	}
	public void setS_birthday(String sBirthday) {
		s_birthday = sBirthday;
	}
	public String getS_idCard() {
		return s_idCard;
	}
	public void setS_idCard(String sIdCard) {
		s_idCard = sIdCard;
	}
	public String getD_id() {
		return d_id;
	}
	public void setD_id(String dId) {
		d_id = dId;
	}
	public String getP_id() {
		return p_id;
	}
	public void setP_id(String pId) {
		p_id = pId;
	}
	public String getS_entrydate() {
		return s_entrydate;
	}
	public void setS_entrydate(String sEntrydate) {
		s_entrydate = sEntrydate;
	}
	public String getS_workdate() {
		return s_workdate;
	}
	public void setS_workdate(String sWorkdate) {
		s_workdate = sWorkdate;
	}
	public String getS_workform() {
		return s_workform;
	}
	public void setS_workform(String sWorkform) {
		s_workform = sWorkform;
	}
	public String getS_workformName() {
		return s_workformName;
	}
	public void setS_workformName() {
		if(s_workform == null){
			s_workformName = null;
		}
		else{
			if(s_workform.equals("1")){
				s_workformName = "正式员工";
			}else if(s_workform.equals("2")){
				s_workformName = "临时员工";
			}else if(s_workform.equals("2")){
				s_workformName = "离职员工";
			}
			else{
				
			}
		}
		
	}
	public String getS_source() {
		return s_source;
	}
	public void setS_source(String sSource) {
		s_source = sSource;
	}
	public String getS_sourceName() {
		return s_sourceName;
	}
	public void setS_sourceName() {
		if(s_source == null){
			s_sourceName = null;
		}
		else{
			if(s_source.equals("1")){
				s_sourceName = "校园招聘";
			}else if(s_source.equals("2")){
				s_sourceName = "社会招聘";
			}else if(s_source.equals("3")){
				s_sourceName = "其他";
			}
			else{
				
			}	
		}
		
	}
	public String getS_political() {
		return s_political;
	}
	public void setS_political(String sPolitical) {
		s_political = sPolitical;
	}
	public String getS_politicalName() {
		return s_politicalName;
	}
	public void setS_politicalName() {
		if(s_political == null){
			s_politicalName = null;
		}
		else{
			if(s_political.equals("1")){
				s_politicalName = "党员";
			}else if(s_political.equals("2")){
				s_politicalName = "预备党员";
			}else if(s_political.equals("3")){
				s_politicalName = "团员";
			}else if(s_political.equals("4")){
				s_politicalName = "其他";
			}
			else{
				
			}
		}
		
	}
	public String getS_phone() {
		return s_phone;
	}
	public void setS_phone(String sPhone) {
		s_phone = sPhone;
	}
	public String getS_oldOccupation_Startdate() {
		return s_oldOccupation_Startdate;
	}
	public void setS_oldOccupation_Startdate(String sOldOccupationStartdate) {
		s_oldOccupation_Startdate = sOldOccupationStartdate;
	}
	public String getS_oldOccupation_Enddate() {
		return s_oldOccupation_Enddate;
	}
	public void setS_oldOccupation_Enddate(String sOldOccupationEnddate) {
		s_oldOccupation_Enddate = sOldOccupationEnddate;
	}
	public String getS_oldCompany_name() {
		return s_oldCompany_name;
	}
	public void setS_oldCompany_name(String sOldCompanyName) {
		s_oldCompany_name = sOldCompanyName;
	}
	public String getS_oldWork_content() {
		return s_oldWork_content;
	}
	public void setS_oldWork_content(String sOldWorkContent) {
		s_oldWork_content = sOldWorkContent;
	}
	public String getS_foreign_languages() {
		return s_foreign_languages;
	}
	public void setS_foreign_languages(String sForeignLanguages) {
		s_foreign_languages = sForeignLanguages;
	}
	public String getS_kinship() {
		return s_kinship;
	}
	public void setS_kinship(String sKinship) {
		s_kinship = sKinship;
	}
	public String getS_kinshipName() {
		return s_kinshipName;
	}
	public void setS_kinshipName() {
		if(s_kinship == null){
			s_kinshipName = null;
		}
		else{
			if(s_kinship.equals("1")){
				s_kinshipName = "父亲";
			}
			else if(s_kinship.equals("2")){
				s_kinshipName = "母亲";
			}
			else if(s_kinship.equals("3")){
				s_kinshipName = "配偶";
			}
			else if(s_kinship.equals("4")){
				s_kinshipName = "其他";
			}
			else{
				
			}
		}
		
	}
	public String getS_relation_name() {
		return s_relation_name;
	}
	public void setS_relation_name(String sRelationName) {
		s_relation_name = sRelationName;
	}
	public String getS_relation_telephone() {
		return s_relation_telephone;
	}
	public void setS_relation_telephone(String sRelationTelephone) {
		s_relation_telephone = sRelationTelephone;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
	public Post getPost() {
		return post;
	}
	public void setPost(Post post) {
		this.post = post;
	}
	@Override
	public String toString() {
		return "Staff [s_id=" + s_id + ", s_name=" + s_name + ", s_sex=" + s_sex + ", s_sexName=" + s_sexName + ", s_birthday=" + s_birthday + ", s_idCard=" + s_idCard + ", d_id=" + d_id + ", p_id=" + p_id + ", s_entrydate=" + s_entrydate + ", s_workdate=" + s_workdate + ", s_workform=" + s_workform + ", s_workformName=" + s_workformName + ", s_source=" + s_source + ", s_sourceName=" + s_sourceName + ", s_political=" + s_political + ", s_politicalName=" + s_politicalName
				+ ", s_phone=" + s_phone + ", s_oldOccupation_Startdate=" + s_oldOccupation_Startdate + ", s_oldOccupation_Enddate=" + s_oldOccupation_Enddate + ", s_oldCompany_name=" + s_oldCompany_name + ", s_oldWork_content=" + s_oldWork_content + ", s_foreign_languages=" + s_foreign_languages + ", s_kinship=" + s_kinship + ", s_kinshipName=" + s_kinshipName + ", s_relation_name=" + s_relation_name + ", s_relation_telephone=" + s_relation_telephone + ", department="
				+ department + ", post=" + post + "]";
	}
	
	
}